package j.framework.core;

import j.util.StringUtils;

/**
 * 数据类型枚举类
 * Created by junhai on 2014/11/23.
 */
public enum DataType {
    STRING,
    INTEGER,
    FLOAT,
    DOUBLE,
    DATE,
    DATETIME,
    TIME,
    LONG,
    SHORT,
    BOOLEAN;
    public static DataType parseDataType(String strInput){
        if(StringUtils.isNullOrEmpty(strInput)){
            return DataType.STRING;
        }else{
            return DataType.valueOf(strInput);
        }
    }
}
